package ej.i2;

public class NutritionFacts {
	private final int servingSize;
	private final int servings;

	private int calories = 0;
	private int fat = 0;
	private int carbohydrate = 0;
	private int sodium = 0;

	public NutritionFacts(int servingSize, int servings) {
		super();
		this.servingSize = servingSize;
		this.servings = servings;
	}

	public int getCalories() {
		return calories;
	}

	public NutritionFacts setCalories(int calories) {
		this.calories = calories;
		return this;
	}

	public int getFat() {
		return fat;
	}

	public NutritionFacts setFat(int fat) {
		this.fat = fat;
		return this;
	}

	public int getCarbohydrate() {
		return carbohydrate;
	}

	public NutritionFacts setCarbohydrate(int carbohydrate) {
		this.carbohydrate = carbohydrate;
		return this;
	}

	public int getSodium() {
		return sodium;
	}

	public NutritionFacts setSodium(int sodium) {
		this.sodium = sodium;
		return this;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		NutritionFacts nf = new NutritionFacts(1, 2).setCalories(3);
		System.out.println(nf.getCalories());
	}

}
